-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use hardware backed keys #125
Conversation
berendsliedrecht
commented
Jul 16, 2024
•
edited
Loading
edited
- Just waiting on a new release of credo.
122fe1e
to
1bd09fb
Compare
keyBackend: KeyBackend.SecureElement, | ||
}) | ||
.catch(() => { | ||
throw new Error(`Could not create a hardware-backed key for keytype: '${keyType}'. Only P-256 is supported`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we want to deal with this? Do we want to make sure secure element is only used for specific credentials? Only using secure env keys makes the wallet useless for phones without one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have a way to detect PID/QEAA usage, and if so, require hardware. But otherwise not use it.
Not sure how yet ... Maybe it can be an app.json config for now (like mediatorDid). As for Funke we now only have to deal with PIDs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we want to do that? Maybe the VCT scheme in the app.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I think for now just make it a true/false whether to use hardware keys. If yes, you can only use hardware P-256. If no, you can only use software keys
1bd09fb
to
fd39886
Compare
We can add patches for now (i had to do this for a separate branch recently). Pushed it to this PR |
19a18ad
to
2672603
Compare
Signed-off-by: Berend Sliedrecht <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
e3f6085
to
cd03489
Compare
Signed-off-by: Berend Sliedrecht <[email protected]>
cd03489
to
d77d6a6
Compare